﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ETL.DataServiceInterface
{
    public static class DtSerProxyFactory
    {
        public static IDataServiceProxy Create(string assemblyName, string typeName)
        {
            Assembly assembly = Assembly.Load(assemblyName);
            Type type = assembly.GetType(typeName);

            return (IDataServiceProxy)assembly.CreateInstance(typeName);
        }
    }
}
